﻿using System;
using Ewk.Runtime.Serialization.PositionBased;

namespace Ewk.Runtime.Serialization.UnitTests.Records.PositionBased
{
    [PositionBasedDatarecord(12)]
    class PositionBasedTestDatarecordWithMandatoryFields
    {
        [PositionBasedDatafield(0,2, Mandatory = true)]
        public int RecordType { get; set; }

        [PositionBasedDatafield(2, 10, Mandatory = true, Format = "dd-MM-yyyy")]
        public DateTime Date { get; set; }
    }
}
